package com.devshephard.test.netty;

import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.util.concurrent.EventExecutor;

import java.util.Iterator;

public class NettyTestDemo {
    public static void main(String[] args) {

        NioEventLoopGroup nioEventLoopGroup = new NioEventLoopGroup(3);
        Iterator<EventExecutor> iterator = nioEventLoopGroup.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }

       /* System.out.println(nioEventLoopGroup.next());
        System.out.println(nioEventLoopGroup.next());
        System.out.println(nioEventLoopGroup.next());
        System.out.println(nioEventLoopGroup.next());*/
        
    }
}
